package com.heima.model.behavior.pojos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("ap_read_behavior")
public class ApReadBehavior implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    //用户id
    @TableField("entry_id")
    private Integer entryId;

    //文章id
    @TableField("article_id")
    private Long articleId;

    @TableField("count")
    private Integer count;

    //阅读时间单位秒
    @TableField("read_duration")
    private Integer readDuration;

    //阅读百分比
    @TableField("percentage")
    private short percentage;

    //文章加载时间
    @TableField("load_duration")
    private Integer loadDuration;

    //登录时间
    @TableField("created_time")
    private Date createdTime;

    //修改时间
    @TableField("update_time")
    private Date updateTime;
}
